﻿#ifndef __SS_3D_DEFINE_H__
#define __SS_3D_DEFINE_H__
#include "ssBaseDefine.h"

namespace StarSeeker
{

#ifdef SS_USE_DOUBLE_FLOAT
#define SS_FLOAT	GL_DOUBLE
#else
#define SS_FLOAT	GL_FLOAT
#endif

#define SS_INDEX_8	GL_UNSIGNED_BYTE
#define SS_INDEX_16	GL_UNSIGNED_SHORT
#define SS_INDEX_32	GL_UNSIGNED_INT

#define SS_BYTE		GL_BYTE
#define SS_UBYTE	GL_UNSIGNED_BYTE
#define SS_SHORT	GL_SHORT
#define SS_USHORT	GL_UNSIGNED_SHORT
#define SS_INT		GL_INT
#define SS_UINT		GL_UNSIGNED_INT

#define	SS_PRIMITIVE_POINT			GL_POINTS
#define	SS_PRIMITIVE_LINE			GL_LINES
#define SS_PRIMITIVE_TRIANGLE		GL_TRIANGLES
#define SS_PRIMITIVE_QUAD			GL_QUADS

#define	SS_VBO_STATIC				GL_STATIC_DRAW
#define	SS_VBO_STREAM				GL_STREAM_DRAW
#define SS_VBO_DYNAMIC				GL_DYNAMIC_DRAW

#define	SS_CULL_NULL				0	//双面绘制
#define SS_CULL_CW					1	//正面绘制
#define SS_CULL_CCW					2	//反面绘制

}
#endif
